package cn.wolfcode.crm;

import cn.wolfcode.crm.shiro.AjaxFormAuthenticationFilter;
import cn.wolfcode.crm.shiro.CRMRealm;
import com.jagregory.shiro.freemarker.ShiroTags;
import freemarker.template.TemplateException;
import org.apache.shiro.cache.ehcache.EhCacheManager;
import org.apache.shiro.spring.web.ShiroFilterFactoryBean;
import org.apache.shiro.spring.web.config.DefaultShiroFilterChainDefinition;
import org.apache.shiro.spring.web.config.ShiroFilterChainDefinition;
import org.apache.shiro.web.mgt.DefaultWebSecurityManager;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer;

import javax.servlet.Filter;
import java.io.IOException;
import java.util.LinkedHashMap;
import java.util.Map;

@SpringBootApplication
@MapperScan("cn.wolfcode.crm.mapper") //mapper接口扫描
public class SpringbootCrmApplication {

	public static void main(String[] args) {
		SpringApplication.run(SpringbootCrmApplication.class, args);
	}

}
